////////////////////////////////////////////////////////////////////////////////
//
//  This program is free software; you can redistribute it and/or modify 
//  it under the terms of the GNU General Public License as published by the 
//  Free Software Foundation; either version 3 of the License, or (at your 
//  option) any later version.
//
//  This program is distributed in the hope that it will be useful, but 
//  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
//  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
//  for more details.
//
//  You should have received a copy of the GNU General Public License along 
//  with this program; if not, see <http://www.gnu.org/licenses>.
//
////////////////////////////////////////////////////////////////////////////////

package merapi.gps.model;

/**
 *  <code>GPSInfo</code> models data about the current GPS location. 
 *
 *  @see com.tesla.merapi.gps.messages.GPSMessage;
 *  
 *  @author Adam Flater - adamflater.net
 */
public class GPSInfo 
{
    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------

    /**
     * Constructor.
     */
    public GPSInfo() 
    {
        super();
    }

    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------

    //----------------------------------
    //  latitude
    //----------------------------------

    /**
     *  The position in latitude
     */
    public double getLatitude() 
    {
        return __latitude;
    }
    public void setLatitude( double val ) 
    {
    	__latitude = val;
    }
    
    //----------------------------------
    //  longitude
    //----------------------------------
    
    /**
     *  The position in longitude
     */
    public double getLongitude() 
    {
    	return __longitude;
    }
    public void setLongitude( double val ) 
    {
    	__longitude = val;
    }

    
    //--------------------------------------------------------------------------
    //
    //  Methods
    //
    //--------------------------------------------------------------------------

    /**
     *  Override of toString()
     */
    public String toString()
    {
    	return "GPSInfo - latitude: " + Double.toString( getLatitude() ) + 
    					" longitude: " + Double.toString( getLongitude() );
    }
    
    //--------------------------------------------------------------------------
    //
    //  Variables
    //
    //--------------------------------------------------------------------------

    /**
     *  Used by the getters/setters.
     */
    private double __latitude		= 0.0;
    private double __longitude		= 0.0;
    
}
